<template>
  <el-container>
    <el-aside width="auto">
      <NavSide :collapse="isCollapse" />
    </el-aside>
    <el-container>
      <el-header>
        <NavHeader v-model:collapse="isCollapse" />
      </el-header>
      <el-main>
        <RouterView />
      </el-main>
    </el-container>
  </el-container>
</template>

<script setup lang="ts">
import { ref } from 'vue'

import NavHeader from './NavHeader/index.vue'
import NavSide from './NavSide/index.vue'

defineOptions({
  name: 'FrameLayout',
})

const isCollapse = ref<boolean>(false)
</script>

<style scoped>
.el-header {
  padding: 0;
  border-bottom: 1px solid #eee;
}
</style>
